/*
 * @Author: 贺楠 1071780426@qq.com
 * @Date: 2024-09-10 14:25:40
 * @LastEditors: 贺楠 1071780426@qq.com
 * @LastEditTime: 2024-11-14 15:24:28
 * @FilePath: \monitoring_system\src\api\testMachineManage\request.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import {
    reqNull,
} from '../index';

// let url = 'http://192.168.0.02:8080/IOTManagement/' //孙猛本地
// let url = 'http://192.168.0.8:8300/IOTManagement/' //李康本地
// let url = 'http://192.168.0.20:8300/IOTManagement/' //嫣然/本地
// let url = 'http://192.168.0.44:8080/IOTManagement/' //韩磊/本地
let url = 'http://110.185.107.22:8388/newiotmachine/' //高信
// 试验机管理
// 版本管理
// 列表
export const getMachineVersionList = (res) => {
    return reqNull("post", url + "Machine/Version/getMachineVersionList", res)
}
// 新增保存
export const saveMachineVersion = (res) => {
    return reqNull("post", url + "Machine/Version/saveMachineVersion", res)
}
// 详情
export const getMachineVersion = (res) => {
    return reqNull("post", url + "Machine/Version/getMachineVersion", res)
}
// 删除
export const deleteMachineVersion = (res) => {
    return reqNull("post", url + "Machine/Version/deleteMachineVersion", res)
}
// 版本管理
//设备管理
// 列表
export const getMachineInfoList = (res) => {
    return reqNull("post", url + "Machine/MachineInfo/getMachineInfoList", res)
}
// 保存
export const saveMachineInfo = (res) => {
    return reqNull("post", url + "Machine/MachineInfo/saveMachineInfo", res)
}
//  详情
export const getMachineInfo = (res) => {
    return reqNull("post", url + "Machine/MachineInfo/getMachineInfo", res)
}
// 删除
export const deleteMachineInfo = (res) => {
    return reqNull("post", url + "Machine/MachineInfo/deleteMachineInfo", res)
}
// 修改
export const updateMachineInfo = (res) => {
    return reqNull("post", url + "Machine/MachineInfo/updateMachineInfo", res)
}
//设备管理

// 试验名称
// 列表
export const getMachineTesttypeList = (res) => {
    return reqNull("post", url + "Machine/Testtype/getMachineTesttypeList", res)
}
// 新增
export const saveMachineTesttype = (res) => {
    return reqNull("post", url + "Machine/Testtype/saveMachineTesttype", res)
}
//  详情
export const getMachineTesttype = (res) => {
    return reqNull("post", url + "Machine/Testtype/getMachineTesttype", res)
}
// 删除
export const deleteMachineTesttype = (res) => {
    return reqNull("post", url + "Machine/Testtype/deleteMachineTesttype", res)
}
// 查询试验属性列表页
export const getMachineTesttypeDictList = (res) => {
    return reqNull("get", url + "Machine/Testtype/getMachineTesttypeDictList", res)
}
// 试验名称
// 数据字典-右侧列表页（根据编码查询）
export const getBaseDataitemDetailByItemCode = (res) => {
    return reqNull("post", url + "Base/Dataitem/getBaseDataitemDetailByItemCode", res)
}
